package com.easy.common.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.easy.common.bean.OrderItems;
import com.easy.common.bean.Orders;


import java.util.List;

//订单业务处理
public interface IOrderService {
    Orders insert(Orders Orders);
    Orders update(Orders Orders);
    Orders transact(Integer id);
    Orders cancel(Integer id);
    Orders getByID(Integer id);
    List<Orders> getListByUserID(IPage page,Integer userid);
    List<Orders> getListByCustomerId(IPage page,Integer customerid);
// 新增订单明细
OrderItems insertItem(OrderItems orderItems);
    OrderItems updateItem(OrderItems orderItems);
    int deleteItem(Integer id);

}
